<?php

namespace app\job;

use app\common\utils\ApiReturn;
use app\common\utils\Init;

class BaseJob
{
    public function __construct()
    {
        try {
            //初始化设置
            $this->initSet();
        } catch (\Exception|\Error $e) {
            ApiReturn::retError($e);
        }
    }

    public function initSet()
    {
        Init::setRequestId();
        Init::setRequestStartTime();
        Init::setLogSuffix('job');
    }

}